package com.kuhyygy.widget;

import com.kuhyygy.R;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class LifeTabOldWidget extends TabActivity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.lifetab);
		Resources res = getResources();
		
		TabHost mTabHost = getTabHost();

		Intent musicInt = new Intent(this, MusicTabActivity.class);
		TabSpec musicTs = mTabHost.newTabSpec("Music")
				.setIndicator("音乐", res.getDrawable(R.drawable.ic_tab_life))
				.setContent(musicInt);
		mTabHost.addTab(musicTs);
		
		Intent videoInt = new Intent(this, VideoTabActivity.class);
		TabSpec videoTs = mTabHost.newTabSpec("Video")
				.setIndicator("Video", res.getDrawable(R.drawable.ic_tab_life))
				.setContent(videoInt);
		mTabHost.addTab(videoTs);
		
		Intent photoInt = new Intent(this, PhotoTabActivity.class);
		TabSpec photoTs = mTabHost.newTabSpec("Photo")
				.setIndicator("Photo", res.getDrawable(R.drawable.ic_tab_life))
				.setContent(photoInt);
		mTabHost.addTab(photoTs);
		
		mTabHost.setCurrentTab(1);
	}

}
